set(_OLD_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
find_package(Julia)

include(JlCxxConfigExports)

set(CMAKE_MODULE_PATH ${_OLD_CMAKE_MODULE_PATH})

get_target_property(CXX_OLD_INCLUDES JlCxx::cxxwrap_julia INTERFACE_INCLUDE_DIRECTORIES)

set_target_properties(JlCxx::cxxwrap_julia PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${CXX_OLD_INCLUDES};${Julia_INCLUDE_DIRS}"
  INTERFACE_LINK_LIBRARIES "${Julia_LIBRARY}"
)

set(CMAKE_CXX_STANDARD 17)
